/**
 * Copyright 2015 Qiyi Inc. All rights reserved.
 *
 * @file:   Statistic.js
 * @path:   js-src/album/
 * @author: karkarrotxu@qiyi.com
 * @date:   2016-04-25
 */
qui(
    function (require, exports, module) {
        window.Statistic = window.Statistic || {
            version: '1.0'
        };
        Statistic.Constant = {
            baseApiUrl: "/api/",
            thirdUrl_query_user: "http://lego.iqiyi.com/external/auth/auth-api/services/user/search",
            thirdUrl_channel_type: "http://lego.iqiyi.com/suggest/operation",
            thirdUrl_query_videos: "http://lego.iqiyi.com/api/videos",

            devMode: auth.dev(),
            auth_base_url: auth.dev() ? "AUTH_channel_download_" : "AUTH_important_video_download_"
        }

        Statistic.urlConfig = (function () {
            var useUrl = Statistic.Constant.baseApiUrl;
            var sdGetUrl = useUrl + "sd";
            var queryChannelName = Statistic.Constant.devMode ? "http://10.23.70.33:7000/v1/channel/fuzzyquery" : "http://dot.live.qiyi.domain/v1/channel/fuzzyquery";
            var getVodLogUrl = useUrl + "vod/logList/legoProgramId";
            var getVodLogFilterUrl = useUrl + "vod/logList/filter";
            var getEpisodeLogUrl= useUrl + "vod/episodeLogList";
            var submitVodLogUrl = useUrl + "vod/saveLog";
            var submitEpisodeLogUrl = useUrl + "vod/saveEpisodeLog";
            return {
                sdGetUrl: sdGetUrl,
                queryChannelName: queryChannelName,
                submitVodLogUrl: submitVodLogUrl,
                submitEpisodeLogUrl: submitEpisodeLogUrl,
                getVodLogUrl: getVodLogUrl,
                getEpisodeLogUrl:getEpisodeLogUrl,
                getVodLogFilterUrl:getVodLogFilterUrl


            }
        })()
    }
);